<?php
/**
 * Created by PhpStorm.
 * User: jixu
 * Date: 17-7-20
 * Time: 下午5:28
 */
require_once( dirname(dirname(__FILE__)) . '/wp-includes/frameCore/admincontrol.php' );
class brand extends adminControl{
    function __construct(){
        parent::__constructor();
    }
    function indexOp(){
        $model_brand = Model('brand');
        $condition = array();

        $brand_list = $model_brand->table('brand')->where($condition)->order('brand_id desc')->page(4)->select();
        Tpl::output('page',$model_brand->showpage());
        Tpl::output('brand_list',$brand_list);

        Tpl::showpage('brand.list');
    }

    function listOp(){
        $this->indexOp();
    }

    function addOp(){

    }
}

new brand();
